import request from '@/utils/request'

// 查询每日解读列表
export function listMrnews(query) {
  return request({
    url: '/business/mrnews/list',
    method: 'get',
    params: query
  })
}

// 查询每日解读详细
export function getMrnews(id) {
  return request({
    url: '/business/mrnews/' + id,
    method: 'get'
  })
}

// 新增每日解读
export function addMrnews(data) {
  return request({
    url: '/business/mrnews',
    method: 'post',
    data: data
  })
}

// 修改每日解读
export function updateMrnews(data) {
  return request({
    url: '/business/mrnews',
    method: 'put',
    data: data
  })
}

// 删除每日解读
export function delMrnews(id) {
  return request({
    url: '/business/mrnews/' + id,
    method: 'delete'
  })
}
